package pushObserver;

/**
 * Created by root on 2017/5/4.
 */
public class ConcreteObserver implements Observer {

    //观察者的状态
    private String observerState;

    @Override
    public void update(String state) {
        /**
         * 更新观察者的状态，使其与目标状态保持一致
         */
        observerState = state;
        System.out.println("实际观察者状态为：" + observerState);
    }

}
